package com.csun.cmny.provider.service;

import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.model.domain.DmcRfidEvent;
import com.csun.cmny.provider.model.dto.rfid.RfidEventPageQuery;
import com.csun.cmny.provider.model.vo.rfid.DmcRfidLabelVo;
import com.csun.cmny.provider.model.vo.rfid.DmcRfidReaderVo;

import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-01-22 14:54
 * @Description: the interface dmc rfid event service
 */
public interface DmcRfidEventService extends IService<DmcRfidEvent> {

    /**
     * save dmc rfid event
     *
     * @param dmcRfidEvent  dmc rfid event
     *
     * @return  the int
     */
    Integer saveDmcRfidEvent(DmcRfidEvent dmcRfidEvent);

    /**
     * query dmc rfid event list with page
     *
     * @param rfidEventPageQuery    rfid event page query
     *
     * @return  the page info
     */
    List<DmcRfidEvent> queryDmcRfidEventListWithPage(RfidEventPageQuery rfidEventPageQuery);

    /**
     * select one times rfid event by label no
     *
     * @param labelNo   the label no
     *
     * @return  the dmc rfid event
     */
    DmcRfidEvent selectOneByLabelNo(String labelNo);

    /**
     * save dmc rfid event
     *
     * @param dmcRfidReaderVo   dmc rfid reader vo
     * @param dmcRfidLabelVo    dmc rfid label vo
     *
     * @return  the int.
     */
    Integer saveDmcRfidEvent(DmcRfidReaderVo dmcRfidReaderVo, DmcRfidLabelVo dmcRfidLabelVo);

    /*
     * 出入记录查询
     * */
    List<DmcRfidEvent> queryDmcRfidEventListWithPageByRoleName(RfidEventPageQuery rfidEventPageQuery);
}
